package cn.lzj.service.base.impl;

import cn.lzj.mapper.UserMapper;
import cn.lzj.pojo.User;
import cn.lzj.service.base.LoginService;

import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;


@Service
public class loginServiceImpl implements LoginService {

    @Resource
    private UserMapper userMapper;

    @Override
    public User selectByAccountNoService(String accountNo) {
        return userMapper.selectByAccountNo(accountNo);
    }

    @Override
    public User selectByAccountNoAndPasswordService(String accountNo, String password) {
        return userMapper.selectByAccountNoAndPassword(accountNo,password);
    }

    @Override
    public User loginByPhone(String telephone) {
        return userMapper.selectByPhone(telephone);
    }

}
